libxl: fork: Provide ..._always_selective_reap
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 16 Jan 2014 17:01:50 +0000 (17:01 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 6 Feb 2014 14:20:19 +0000 (14:20 +0000)
commit400c0aec59c55e2cfe70091a3a6db326fb41ffa1
tree55e92932fc6acb600f7e1694f73cb9135c2088e5
parentee84b79fbdfc8d00bc37f6659eddc991715e5287
libxl: fork: Provide ..._always_selective_reap

Applications exist which want to use libxl in an event-driven mode but
which do not integrate child termination into their event system, but
instead reap all their own children synchronously.

In such an application libxl must own SIGCHLD but avoid reaping any
children that don't belong to libxl.

Provide libxl_sigchld_owner_libxl_always_selective_reap which has this
behaviour.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: Jim Fehlig <jfehlig@suse.com>
Cc: Ian Campbell <Ian.Campbell@citrix.com>
Acked-by: Ian Campbell <Ian.Campbell@citrix.com>
---
v2: Document the new mode in the big "Subprocess handling" comment.
tools/libxl/libxl_event.h
tools/libxl/libxl_fork.c